ASF is(Advanced Streaming Format)Microsoft developed for Windows 98.File format. This word can be used with WMA and WMV.
ASF is an open standard that relies on multiple protocols to support data transmission in multiple network environments. SameLike jpg and MPG files, ASF files are also a file type, but they are designed to transfer Synchronized Multimedia Data
Profile)
A configuration is a set of description data of an ASF configuration. One setting must contain at least one stream configuration setting.
Stream informationThe stream information in the settings includes the bit rate, buffer window, and media attribute settings of the stream. The stream information of video and audio accurately describes the media configurations in the file, including the encoding and decoder used for compressing data (if any
Profile)A configuration is a set of description data of an ASF configuration. One setting must contain at least one stream configuration setting.Stream informationThe stream information in the settings includes the bit rate, buffer window, and media attribute settings of the stream. The stream information of video and audio accurately describes the media configurations in the file, including the encoding and decoder used for compressing data (if any )
This article mainly introduced about the PHP extension Framework ASF Introduction, has a certain reference value, now share to everyone, the need for friends can refer to
First, what is ASF?
The full name API Services framework, a lightweight PHP extension framework written in C, focuses on API development.
Second, what problems have been solved?
Simplifying complex logic (reducing the error rate and
The idea is to first obtain the file type and select different webpage player codes according to the type .. 3, 5, go, 2 ..... at the same time, in order to reuse the code in the future, a general call function is written. facilitate future calls in other systems ..
The source code is as follows:
Copy codeThe Code is as follows: Sub SelPlay (strUrl, strWidth, StrHeight)
Dim Exts, isExt
If strUrl IsExt = LCase (Mid (strUrl, limit Rev (strUrl, ".") + 1 ))
Else
IsExt = ""
End If
Exts = "avi, wmv,
In SS/XS, we use FFMPEG as an example. However, when converting wmv and ASF, the image is often displayed on the screen. I checked the information on the Internet and found that the parameter adjustment was invalid.
Later, I used mencoder, and the conversion was slow, but the quality was good. I tried at least a dozen WMV/ASF screens, unexpectedly, the converted FLV file is smaller than that transferred fro
Aiseesoft PDF to Word Converter is a professional PDF converter that converts PDF files to Word documents in high quality, supports converting PDFs to DOC, DOCX, or RTF formats, and also supports batch conversions.Aiseesoft PDF to Word Converter can convert a generic text PDF to a Word document, or a scanned or picture PDF, with a powerful OCR document recognitio
Epub to PDF Converter is an easy-to-use ebook converter that converts a document in epub format into a PDF file for all types of reading devices.Epubor epub2pdf Converter Software has built-in transformation configurations for many reading devices, including Amazon (Kindle), Apple (Ipad/iphone), Nook, Kobo, Sony eReader, etc. You can also customize the output dev
Struts2 registers a local converter and a local Converter
To implement a custom converter, You need to inherit the defatypetypeconverter class or the StrutsTypeConverter class from the objects to be converted, and obtain the entry of a type converter to implement the developer's own type
There is a field in the action that is of the birthday or date type. When we pass the value, it must be written as to automatically convert the type, however, in some cases, you may need to write 19990101 so that automatic type conversion is not performed by default. In this way, you can write a custom type converter to achieve conversion.
Struts2 has two types of converters:
Partial: it applies to an action conversion type.
First, you need to customi
Typeconverter class. The description in msdn provides a unified method to convert the value type to other types, as well as access standard values and sub-attributes.Let's take a look at the example to translate a string into a type converter with a point structure.Public class pointconverter: typeconverter {Public override bool canconvertfrom (itypedescriptorcontext context, type sourcetype ){If (sourcetype = typeof (string) {return true ;}Return bas
Custom type converter Convert, converter convert
// Specify a type converter (convert String to Date) ConvertUtils. register (new Converter () {@ Override public Object convert (Class clazz, Object value) {// convert string to date SimpleDateFormat format = new SimpleDateFormat ("yyyy-MM-dd"); Date parse = null; try {p
TCP transmission: Use the socket service to implement a text converter, socket Text Converter
Reprinted please indicate the source, thank you: http://blog.csdn.net/harryweasley/article/details/45665291
I recently read a teaching video and learned socket programming. There is an example in which I feel that it is well written. I will organize it here to help me recall and view it.
Requirement: Text
object to a string in some way.
To achieve these transformations, there is a magician in Struts 2.0 who can help you--converter. With it, you don't have to repeat this code over and over again:
Date birthday = dateformat.getinstance (dateformat.short). Parse (strdate);
OK, now let's take a look at an example.
Converters--hello World
At the end of my last article, "Internationalizing in Struts 2.0 (i18n) Your application," I gave an example tha
pageMv.addobject ("datamsg", Ex.getmessage ()); returnMV; } @RequestMapping ("/first") //The type conversion work must be performed before the actual handler method executes. PublicString Dofirst (Date birthday,intAgethrowsException {System.out.println ("222222222222222222222"); System.out.println (Birthday+ "==========="); System.out.println ( Age+ "==============="); return"/index.jsp"; }}4. MapperXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.springfr
; requestmappinghandlermappingAnnotationmethodhandleradapter-> RequestmappinghandleradapterAnnotationmethodhandlerexceptionresolver-> ExceptionhandlerexceptionresolverAll of the above are automatically registered after using the Annotation-driven.and the corresponding respectively provided abstracthandlermethodmapping, Abstracthandlermethodadapter and Abstracthandlermethodexceptionresolver to make it easier for users to implement custom implementation classes.
Spring MVC
Java code
As can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.